package org.bright.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import org.bright.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 库存表
 * </p>
 *
 * @author bright
 * @since 2024-12-10 04:12
 */
@Getter
@Setter
@TableName("inventory")
@Schema(name = "Inventory", description = "库存表")
public class Inventory extends BaseEntity {

    @Schema(description = "库存ID")
    @TableId(value = "inventory_id", type = IdType.AUTO)
    private Integer inventoryId;

    @Schema(description = "商品ID")
    @TableField("product_id")
    private Integer productId;

    @Schema(description = "库存量")
    @TableField("quantity")
    private Integer quantity;

    @Schema(description = "最后更新时间")
    @TableField("last_update")
    private Date lastUpdate;
}
